package com.share.shrimpcolo.petv03;

public abstract class Pet {
	
	protected String name = "无名氏";
	protected int health = 100;
	protected int love = 0;
	
	public Pet(String name){
		this.name = name;		
	}
	/**
	 * out put print
	 */
	public void print() {
		System.out.println("宠物的自白：\n我的名字叫" + this.name
				+", 健康值是" + this.health + ", 和主人的亲密度是" + this.love);
	}
	
	/**
	 * abstract function
	 */
	public abstract void eat();
	
}


